home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Programming / AmigaE / Src / OOmodules / sort / numbers / twoNumbers.e < prev   
Encoding:
Text File  |  1995-08-06  |  440 b   |  27 lines

  1. /*
  2.  
  3. twoNumbers
  4.  
  5. Take two objects that consist of numbers, e.g. Complex and Fraction.
  6. Those exist of two numbers, only the methods are a bit different, so why
  7. don't make a class of it and derive those two from it? Well, here you are.
  8.  
  9. Objects to derive from this:
  10.  
  11. Fraction
  12. Complex
  13. Line?
  14.  
  15. */
  16.  
  17. OPT MODULE
  18. OPT EXPORT
  19.  
  20. MODULE 'oomodules/sort/numbers'
  21.  
  22. OBJECT twoNumbers OF number
  23. PRIVATE
  24.   value1:PTR TO number
  25.   value2:PTR TO number
  26. ENDOBJECT
  27.